package cn.wuweixiang.springbootdemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * ViewController
 *
 * @author weixiang.wu
 * @date 2018-08-23 11:29
 **/
@Controller
public class ViewController {

	@RequestMapping("/testView")
	public String testView() {
		System.out.println("ViewController.testView");
		return "testView";
	}

	@RequestMapping("/testView1")
	@ResponseBody
	public String testView1() {
		System.out.println("ViewController.testView1");
		return "testView1";
	}
}
